package cn.smile.bean.form.core.user;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class UpdatePwdForm {
    /**
     * 旧密码
     */
    @NotBlank(message = "请输入原密码")
    private String oldPwd;
    /**
     * 新密码
     */
    @NotBlank(message = "请输入新密码")
    @Length(min = 8, max = 20, message = "新密码必须8-20个字符")
    private String newPwd;
    /**
     * 确认密码
     */
    @NotBlank(message = "请再次确认新密码")
    private String confirmPwd;
}
